﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Main.Master" Inherits="System.Web.Mvc.ViewPage<spring.salesman.Models.UserModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

      <% using (Html.BeginForm()) { %>
        <%= Html.ValidationSummary(true, "帐户创建不成功。请更正错误并重试。") %>
        <div>
            <fieldset>
                <legend>编辑用户信息</legend>                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Name)%>
                    <%=Html.TextBoxFor(m=>m.Name) %>
                    <%= Html.ValidationMessageFor(m => m.Name)%>
                </div>
                <div class="editor-field">
                    <%= Html.LabelFor(m => m.Sex)%>
                    <%= Html.RadioButtonFor(m => m.Sex,true,new { @value="name1"})%>
                    <%= Html.RadioButtonFor(m => m.Sex,false,new { @checked="true"})%>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Birthday)%>
                    <%= Html.TextBoxFor(m => m.Birthday)%>
                </div>                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Address)%>
                    <%= Html.TextBoxFor(m => m.Address)%>
                </div>
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Telephone)%>
                    <%= Html.TextBoxFor(m => m.Telephone)%>
                </div>
                
                <div class="editor-field">
                    <%= Html.LabelFor(m => m.MobilePhone)%>
                    <%= Html.TextBoxFor(m => m.MobilePhone)%>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Email)%>
                    <%= Html.TextBoxFor(m => m.Email)%>
                </div>
                <div class="editor-field">
                    <%= Html.LabelFor(m => m.Remark)%>
                    <%= Html.TextAreaFor(m => m.Remark)%>
                </div>
               
                <p>
                    <input type="submit" value="保存" />
                </p>
            </fieldset>
        </div>
    <% } %>

</asp:Content>
